<?php
/**
 * Header file for the example code usage
 * 
 * @package Image2
 */

error_reporting(E_STRICT);

function __autoload($class_name)
{
	$interface_file = "./includes/classes/I$class_name.interface.inc.php";
	$class_file = "./includes/classes/$class_name.class.inc.php";
	if (file_exists($interface_file))
	{
    	require($interface_file);
    }
    else
    {
    	trigger_error("Interface for $class_name not found", E_USER_NOTICE);
   	}
   	
   	if (file_exists($class_file))
   	{
    	require($class_file);
    }
}

require_once("./libraries/geshi/geshi.php");